package org.example.service;

import org.example.entity.User;
import org.example.mapper.UserMapper2;
import org.example.sso.model.entity.UserDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService  {
    @Autowired
    UserMapper2 userMapper;


    public UserDO loginByUser(User user) {
        return userMapper.queryById(user.getId());
    }
}